package com.gmadmin.entity.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.gmadmin.common.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SysRoleDto  extends BaseEntity {

    /**
     * ID
     */
    @ApiModelProperty(value = "角色id")
    private Long id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "角色名称")
    private String name;

    /**
     * 角色级别
     */
    @ApiModelProperty(value = "角色级别")
    private Integer level;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;

    /**
     * 数据权限
     */
    @ApiModelProperty(value = "角色范围")
    private String dataScope;

    @ApiModelProperty(value = "是否启用,1启用，0禁用")
    private Boolean enabled;


    @ApiModelProperty(value = "关联菜单ids")
    private List<Long> menuIds;


    @ApiModelProperty(value = "关联api_ids")
    private List<Long> apiIds;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDataScope() {
        return dataScope;
    }

    public void setDataScope(String dataScope) {
        this.dataScope = dataScope;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public List<Long> getMenuIds() {
        return menuIds;
    }

    public void setMenuIds(List<Long> menuIds) {
        this.menuIds = menuIds;
    }

    public List<Long> getApiIds() {
        return apiIds;
    }

    public void setApiIds(List<Long> apiIds) {
        this.apiIds = apiIds;
    }
}
